package com.xiaolin.designmode.command;

/**
 * @ClassName Invoker
 * @Description 调用者/请求者
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/5
 * @Version 1.0
 */
public class Invoker {
    private Command command;
    public Invoker(Command command){
        this.command=command;
    }
    public void setCommand(Command command) {
        this.command = command;
    }
    public void call(){
        this.command.execute();
    }
}
